import os


def load_func(filename, func_name):
    with open(filename, 'r') as f:
        func_str = f.read()
        func_str = func_str.replace('TARGET_FUNCNAME', func_name)
        exec(func_str)
        return eval(func_name)


if __name__ == '__main__':
    while True:
        filename = input('filename')
        if not filename.endswith('.py'):
            filename += '.py'
        filename = os.path.join('Processors', filename)
        func_name = 'check'
        func = load_func(filename, func_name)
        func(None)
